using System.Collections;
using UnityEngine;

namespace PKGames.AssetBundleSystem
{
	public class AssetBundleUtils
	{
		public static IEnumerator WaitForUnityCache(float timeout)
		{
			float time = 0f;
			while (!Caching.ready)
			{
				time += Time.deltaTime;
				if (time >= timeout)
				{
					break;
				}
				yield return null;
			}
		}
	}
}
